package com.sdp.wx.db.wx_wz_arrival.service.impl;

import com.sdp.wx.db.wx_wz_arrival.entity.WxWzArrival;
import com.sdp.wx.db.wx_wz_arrival.mapper.WxWzArrivalMapper;
import com.sdp.wx.db.wx_wz_arrival.service.IWxWzArrivalService;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zsp
 * @since 2024-01-25
 */
@Service
public class WxWzArrivalServiceImpl extends ServiceImpl<WxWzArrivalMapper, WxWzArrival> implements IWxWzArrivalService {

	@Override
	public WxWzArrival queryWxWzArrivalByCode(String arrivalCode) {
		LambdaQueryWrapper<WxWzArrival> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(WxWzArrival::getArrivalCode, arrivalCode);
		return getOne(queryWrapper,false);
	}

}
